package com.fg.pro.trade.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 出入库详情(TradeStockSheetDetail)表实体类
 *
 * @author makejava
 * @since 2025-08-20 10:43:48
 */
@SuppressWarnings("serial")
@Data
public class TradeStockSheetDetail extends Model<TradeStockSheetDetail> {
//主键
    private Long id;

    private Date createTime;

    private Date updateTime;
//企业ID
    private Long stockSheetDetailGroupId;
//站点ID
    private Long stockSheetDetailStationId;
//关联单据ID
    private Long stockSheetId;
//商品ID
    private Long skuId;
//基本单位id
    private Long stockSheetDetailBaseUnitId;
//自定义单位id
    private Long stockSheetDetailSkuUnitId;
//详情总金额 (不含税)
    private Double stockSheetDetailAmount;
//操作人
    private Long stockSheetDetailOperatorId;
//创建人id
    private Long stockSheetDetailCreatorId;
//进项税率
    private Integer stockSheetDetailInputTax;
//客户填写 详情总金额(含税)
    private Double stockSheetDetailTaxAmount;
//客户填写 客户输入的价格 (计量单位)(含税) 和input_stock
    private Double stockSheetDetailTaxInputPrice;
//客户填写 客户输入的价格 (计量单位)(含税)
    private Double stockSheetDetailOriginTaxInputPrice;
//货位id
    private Long stockSheetDetailShelfId;
//数量
    private Double stockSheetDetailQuantity;
//价格
    private Double stockSheetDetailPrice;
//建单时的数量
    private Double stockSheetDetailSourceQuantity;
//无效类型单据类型 100：采购入库单据类型 110：生产入库单据类型 120：退料入库单据类型 130：销售退货入库单据类型 140：调拨入库 废弃,用不到单据类型 150：其他入库单据类型 300：销售出库单据类型 310：领料出库单据类型 320：采购退货出库单据类型 330：其他出库单据类型 600：盘点单单据类型 400：调拨单(移库单)单据类型 700：借出单(客户端表现成记录)单据类型 800：归还单(客户端表现成记录)单据类型 900：填充单(常规批次填充替代虚拟批次)
    private Integer stockSheetDetailSheetType;
//来源单号
    private String stockSheetDetailStockSheetSerialNo;
//单据状态 0：无效状态1：未提交(草稿)2：已提交(待审核) 
    private Integer stockSheetDetailSheetStatus;
//仓库id
    private Long stockSheetDetailWarehouseId;
//出入库时间
    private Date submitTime;
//供应商id
    private Long stockSheetDetailSupplierId;
//关联采购单的到货状态 0：无 1：已到货 默认值 2：未到货
    private Integer stockSheetDetailReceiveStatus;
//建单时的关联的采购单价
    private Double stockSheetDetailPurchasePrice;
//明细对应单据的建单时间
    private Date stockSheetDetailCreateTime;
//自定义单位
    private Long stockSheetDetailInputUnitId;
//自定义单位数量
    private Double stockSheetDetailInputUnitQuantity;
//商品批次类型快照 0,1：有批次 2：无批次
    private Integer stockSheetDetailSkuBatchType;
//补差
    private Double stockSheetDetailAmountTcerror;
//计划入库数
    private Double stockSheetDetailPlanQuantity;
//计划入库数（自定义单位）
    private Double stockSheetDetailInputUnitPlanQuantity;
//商品是否已删除 0：无 1：是 2：否
    private Integer stockSheetDetailIsDeleted;
//折让金额
    private Double stockSheetDetailRebatePrice;




    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

